package structureType.composite.employ.impl;

import structureType.composite.employ.IEmployer;

public class ProjectAssistantImpl extends IEmployer {

    public ProjectAssistantImpl(String name) {
        setName(name);
        employers = null;// 项目助理, 表示没有下属了
    }

    @Override
    public void add(IEmployer employer) {
        throw new RuntimeException("I can add employ!");
    }

    @Override
    public void delete(IEmployer employer) {
        throw new RuntimeException("I can delete employ!");
    }

    @Override
    public void employerInfo() {
        System.out.println("I am project assistant" + this.getName());
    }
}